package com.cbank.domain;

import java.util.UUID;

/**
 * 二级分组模块实体类
 */
public class ModuleShow extends BaseEntity {

    public static final Integer TYPE_GG=1;//广告位
    public static final Integer TYPE_CON=2;//内容模块

    public static final Integer NEWSTYPE_OL=1;//在线
    public static final Integer NEWSTYPE_NOL=2;//下线

    private String viewId;
    private Integer moduleId;//一级分组的ID
    private Integer type;
    private String title;//标题
    private String enTitle;
    private String pictureUrl;//图片链接
    private String source;//渠道(新闻专用)
    private String bannerUrl;
    private Integer newsType;//新闻状态
    private String publishTime;//发布时间
    private String sourceUrl;//新闻链接

    public ModuleShow() {
        this.viewId= UUID.randomUUID().toString().replaceAll("\\p{Punct}", "");
        this.moduleId=0;
        this.type=0;
        this.title="";
        this.enTitle="";
        this.pictureUrl="";
        this.source="";
        this.bannerUrl="";
        this.status=BaseEntity.STATUS_VALID;
        this.title="";
        this.publishTime="";
        this.newsType=0;
    }

    public String getViewId() {
        return viewId;
    }

    public void setViewId(String viewId) {
        this.viewId = viewId;
    }

    public Integer getModuleId() {
        return moduleId;
    }

    public void setModuleId(Integer moduleId) {
        this.moduleId = moduleId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPictureUrl() {
        return pictureUrl;
    }

    public void setPictureUrl(String pictureUrl) {
        this.pictureUrl = pictureUrl;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getBannerUrl() {
        return bannerUrl;
    }

    public void setBannerUrl(String bannerUrl) {
        this.bannerUrl = bannerUrl;
    }

    public Integer getNewsType() {
        return newsType;
    }

    public void setNewsType(Integer newsType) {
        this.newsType = newsType;
    }

    public String getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(String publishTime) {
        this.publishTime = publishTime;
    }

    public String getSourceUrl() {
        return sourceUrl;
    }

    public void setSourceUrl(String sourceUrl) {
        this.sourceUrl = sourceUrl;
    }

    public String getEnTitle() {
        return enTitle;
    }

    public void setEnTitle(String enTitle) {
        this.enTitle = enTitle;
    }
}
